package com.newcoder.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjh
 * @since 2024-12-04 10:03:26
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "Message对象", description = "")
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("信息id")
    private Integer id;

    @ApiModelProperty("发送者userId")
    private Integer fromId;

    @ApiModelProperty("接收者userId")
    private Integer toId;

    @ApiModelProperty("对话id：即a-b两者的对话框id，两者多次对话，为一个对话框conversationId为aId_bId(a<b),小的id在前，大的id在后")
    private String conversationId;

    @ApiModelProperty("互发的消息")
    private String content;

    @ApiModelProperty("0-未读;1-已读;2-删除;")
    private Integer status;

    private Date createTime;


}
